package inset;

import geom.Line;

import java.awt.geom.Point2D;


public class Intersection
{
    public Intersection(Point2D pt, Line l1, Line l2)
    {
	this.pt = pt;
	this.l1 = l1;
	this.l2 = l2;
    }
    
    @Override
    public boolean equals(Object obj)
    {
        if (obj != null && obj instanceof Intersection)
            return pt.distance(((Intersection) obj).pt) < 1e-10;
        
        return false;
    }
    
    @Override
    public String toString()
    {
	return pt.toString();
    }
    
    public Point2D pt;
    public Line l1, l2;
}
